package apoc.core.core.proxy;


import apoc.core.client.gui.hud.OverlayHandler;
import apoc.core.plugin.ApocPlugin;
import apoc.core.plugin.PluginManager;
import net.minecraftforge.common.MinecraftForge;

public class ClientProxy extends CommonProxy
{
    private OverlayHandler overlayHandler;

    @Override
    public void load()
    {
        super.load();
    }

    @Override
    public void registerRendering()
    {
        overlayHandler = new OverlayHandler();

        MinecraftForge.EVENT_BUS.register(overlayHandler);

        for (ApocPlugin plugin : PluginManager.plugins())
        {
            plugin.registerHUD(overlayHandler);
        }
    }
}